package cn.wolfcode.edu.service;

import cn.wolfcode.edu.domain.Permission;
import cn.wolfcode.edu.query.QueryObject;
import cn.wolfcode.edu.util.PageResult;

import java.util.List;

/**
 * Created by abb on 2018-07-09.
 */
public interface IPermissionService {

    void deleteByPrimaryKey(Long id);

    void insert(Permission entity);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    void updateByPrimaryKey(Permission entity);
    PageResult query(QueryObject qo);


    //重新加载权限
    void reload();

    PageResult listAll();

    //根据角色id查询权限
    PageResult queryByRoleId(Long roleId);
}
